package com.lcu.wl.modules.tools.service;

import com.lcu.wl.common.utils.PageUtils;
import com.lcu.wl.modules.tools.entity.QuartzLog;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 定时任务日志 服务类
 * </p>
 *
 * @author wanglei
 * @since 2021-03-18
 */
public interface IQuartzLogService extends IService<QuartzLog> {

    /**
     * 分页查询
     * @param params
     * @return
     */
    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询全部定时任务日志
     * @param params
     * @return
     */
    List<QuartzLog> queryAll(Map<String, Object> params);

    /**
     * 导出定时任务日志
     * @param quartzJobs
     * @param response
     */
    void download(List<QuartzLog> quartzJobs, HttpServletResponse response) throws IOException;
}
